﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __84F651A4_C607_461f_AB99_DE9AD6F64BC7__
#define __84F651A4_C607_461f_AB99_DE9AD6F64BC7__

namespace xos_log
{
    class log_cmd : public i_logger
    {
    public:
        typedef xos::release_impl< log_cmd > T;

    public:
        log_cmd();
        ~log_cmd();

    public:
        // 输出日志
        int out_put_log( i_log_msg * pLogMsg );
        int flush();

        // 
        // for release_impl to use.
        // 
        int put_back_to_pool( log_cmd * pT, bool bLock );
        int init();
        int term();
    };
} // xos_log

#endif // __84F651A4_C607_461f_AB99_DE9AD6F64BC7__
